/* ****************************************************************************
 * Author: 671643387
 * Date: 2015/3/19
 * ***************************************************************************/

Ext.define("sggm.view.UpdateMarkWindow", {
    extend: "Ext.Window",
    alias: "widget.updateMarkWindow",
    title: "修改标志数据",
    width: 300,
    height: 150,
    modal: true,
    layout:"form",
    labelWidth:45,
    plain:true,
    bodyStyle:"padding:5px",
    buttonAlign: "center",
    items: [{
        xtype: "combo",
        name: "type",
        fieldLabel: "变更数据",
        store: new Ext.data.ArrayStore({
            fields: ['value','text'],
            data: [
                ['tutorial', '新手引导步骤'],
                ['food', '每日付费购买粮食次数'],
                ['day', '设置登录日期eg:20130701'],
                ['daily_task', '设置每日任务最后领取分数']
            ]
        }),
        editable: false,
        valueField: "value",
        displayField: "text",
        triggerAction: "all",
        value: "tutorial"
    }, {
        xtype: "textfield",
        name: "value",
        fieldLabel: "目标值"
    }],
    buttons: [{
        text: "修改",
        action: "saveUserMark"
    }]
});